package com.erp.order.purchasing.dao;

import com.erp.hr.base.dao.BaseDao;
import com.erp.order.purchasing.model.PurchaseOrder;
import com.erp.order.purchasing.model.PurchasingRequisitionDetail;
import org.redragon.framework.hibernate.model.Pages;
import java.util.List;

/**
 * 采购订单 持久层
 * @Author: syz
 * @blame syz
 * @CreateTime: 2021/4/6
 */
public interface PurchaseOrderDao extends BaseDao<PurchaseOrder> {

    /**
     * 获取时间范围内的创建数量
     * @return 时间范围内的申请数量
     */
    Integer getCreateCount();

    /**
     * 获取采购订单详情
     * @param id 采购订单id
     * @return 采购订单详情集合
     */
    List<PurchasingRequisitionDetail> getSubInfo(Long id);

    List<PurchaseOrder> getDatasBySupplyid(String username,PurchaseOrder purchaseOrder,Pages pages);

    PurchaseOrder getDataObject(Long id);

}